{% load url from future %}
{% load i18n %}
<!DOCTYPE html>
<html>
<head>
<title>OWMX</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="/styles/a.css" media="screen">
<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
</head>
<body>
<div id="a">
  <header> <a href="/admin/" title="Go to Homepage"><strong>OWMX</strong> LOGISTIC</a>
    <p>Zmiana hasła</p>
  </header>
  <div id="b">
    <aside>
      <h4>Wyszukaj</h4>
      <form action="#" class="s">
        <input name="search" type="text">
      </form>
      <h4>Zalogowany jako</h4>
      <div id="c"> <img src="/images/jonas-jacek.png" alt="{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}">
        <p><strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong></p>
        <p>{% url 'admin:password_change' as password_change_url %}
                {% if password_change_url %} <a href="{{ password_change_url }}">
                {% else %} <a href="{{ root_path }}password_change/">{% endif %}Zmień hasło</a></p>
        <p>{% url 'admin:logout' as logout_url %} {% if logout_url %} <a href="{{ logout_url }}"> {% else %}
                    <a href="{{ root_path }}logout/">{% endif %}Wyloguj</a></p>
      </div>
    </aside>
    <article>
    <form action="" method="post">{% csrf_token %}
<span class="error">{{ form.non_field_errors }}</span>
<div class="form-row">
    <label for="id_old_password" class="required">{% trans 'Old password' %}: {{ form.old_password.errors }}</label>{{ form.old_password }}
</div>
<div class="form-row">
    <label for="id_new_password1" class="required">{% trans 'New password' %}: {{ form.new_password1.errors }}</label>{{ form.new_password1 }}
</div>

<div class="form-row">
    <label for="id_new_password2" class="required">{% trans 'Password (again)' %}: {{ form.new_password2.errors }}</label>{{ form.new_password2 }}
</div>	
    <input class="button" type="submit" value="{% trans 'Change my password' %}" />
</form>
    </article>
  </div>
  <footer>
    <p><!--Template Design &amp; Markup by <a href="http://jabz.net/contact/jonas-jacek">Jonas Jacek</a> | <a href="http://owmx.com/" title="Free HTML5 &amp; CSS3 Web Templates">Free Web Templates</a>.--></p>
  </footer>
</div>
</html>
